﻿#region Using Statements
using System.Collections.Generic;
using WaveEngine.Common.Graphics;
using WaveEngine.Framework.Graphics;
using WaveEngine.Framework.Managers;
using WaveEngine.Framework.Services;
#endregion

namespace WaveEngine.Extensions.Layers
{
    public class SecondGUILayer : GUILayer
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SecondGUILayer" /> class.
        /// </summary>
        /// <param name="renderManager">Render Manager Handler.</param>
        public SecondGUILayer(RenderManager renderManager)
            : base(renderManager)
        {
        }

        /// <summary>
        /// Sets the device.
        /// </summary>
        protected override void SetDevice()
        {
            this.renderState.BlendMode = BlendMode.AlphaBlend;
            this.renderState.CullMode = CullMode.None;
            this.renderState.DepthMode = DepthMode.Write;
            this.renderState.FillMode = this.FillMode;
            this.renderState.MaxAnisotropy = AnisotropyLevel.Aniso1x;
        }
    }
}
